﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LogisticsAdmin.BLL;
using LogisticsAdmin.Model;

namespace LogisticsAdmin
{
    public partial class NewsInfo : System.Web.UI.Page
    {
        public NewsModel newsModel;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindNewsInfo();
            }
        }

        private void BindNewsInfo()
        {
            if (Request.QueryString["tid"] != null)
            {
                int teamId;
                int.TryParse(Request.QueryString["tid"], out teamId);
                newsModel = new NewsModel();
                NewsBLL newsBLL = new NewsBLL();
                newsModel = newsBLL.NewsInfo(teamId);
            }

        }
    }
}